package com.syeet.gulimall.auth.feign;

import com.syeet.common.utils.R;
import com.syeet.gulimall.auth.vo.SocailUser;
import com.syeet.gulimall.auth.vo.UserLoginVo;
import com.syeet.gulimall.auth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author xhl
 * @date 2023/4/17
 */
@FeignClient(value = "gulimall-member")
public interface MemberFeignService {

    @PostMapping(value = "/member/member/regist")
    public R regist(@RequestBody UserRegistVo vo);

    @PostMapping(value = "/member/member/login")
    public R login(@RequestBody UserLoginVo vo);

    @PostMapping(value = "/member/member/oauth2/login")
    public R oauthLogin(@RequestBody SocailUser vo) throws Exception;
}
